package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperOrderPurchaseGoodsDetail implements Serializable {
    /**
     * 采购订单ID
     */
    private Integer orderId;

    /**
     * 物品ID
     */
    private Integer gId;

    /**
     * 原材料名称
     */
    private String mName;

    /**
     * 原材料规格
     */
    private String mSp;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 单价
     */
    private Double price;

    /**
     * 总价
     */
    private Double tprice;

    /**
     * 原材料ID
     */
    private Integer mId;

    /**
     * 仓库id
     */
    private Integer stockId;

    private static final long serialVersionUID = 1L;

    /**
     * 采购订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 采购订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 物品ID
     */
    public Integer getgId() {
        return gId;
    }

    /**
     * 物品ID
     */
    public void setgId(Integer gId) {
        this.gId = gId;
    }

    /**
     * 原材料名称
     */
    public String getmName() {
        return mName;
    }

    /**
     * 原材料名称
     */
    public void setmName(String mName) {
        this.mName = mName;
    }

    /**
     * 原材料规格
     */
    public String getmSp() {
        return mSp;
    }

    /**
     * 原材料规格
     */
    public void setmSp(String mSp) {
        this.mSp = mSp;
    }

    /**
     * 数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 单价
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 单价
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 总价
     */
    public Double getTprice() {
        return tprice;
    }

    /**
     * 总价
     */
    public void setTprice(Double tprice) {
        this.tprice = tprice;
    }

    /**
     * 原材料ID
     */
    public Integer getmId() {
        return mId;
    }

    /**
     * 原材料ID
     */
    public void setmId(Integer mId) {
        this.mId = mId;
    }

    /**
     * 仓库id
     */
    public Integer getStockId() {
        return stockId;
    }

    /**
     * 仓库id
     */
    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", gId=").append(gId);
        sb.append(", mName=").append(mName);
        sb.append(", mSp=").append(mSp);
        sb.append(", num=").append(num);
        sb.append(", price=").append(price);
        sb.append(", tprice=").append(tprice);
        sb.append(", mId=").append(mId);
        sb.append(", stockId=").append(stockId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperOrderPurchaseGoodsDetail other = (SuperOrderPurchaseGoodsDetail) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getgId() == null ? other.getgId() == null : this.getgId().equals(other.getgId()))
            && (this.getmName() == null ? other.getmName() == null : this.getmName().equals(other.getmName()))
            && (this.getmSp() == null ? other.getmSp() == null : this.getmSp().equals(other.getmSp()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getTprice() == null ? other.getTprice() == null : this.getTprice().equals(other.getTprice()))
            && (this.getmId() == null ? other.getmId() == null : this.getmId().equals(other.getmId()))
            && (this.getStockId() == null ? other.getStockId() == null : this.getStockId().equals(other.getStockId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getgId() == null) ? 0 : getgId().hashCode());
        result = prime * result + ((getmName() == null) ? 0 : getmName().hashCode());
        result = prime * result + ((getmSp() == null) ? 0 : getmSp().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getTprice() == null) ? 0 : getTprice().hashCode());
        result = prime * result + ((getmId() == null) ? 0 : getmId().hashCode());
        result = prime * result + ((getStockId() == null) ? 0 : getStockId().hashCode());
        return result;
    }
}